package com.jk.dao;

import com.jk.UserBean;
import com.jk.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface USerDao {
    UserBean findUserByPhone(String phone);

    UserBean findUserByName(String userName);

    void upPwd(@Param("phone") String phone, @Param("userPwd") String userPwd);

    Integer addUser(UserBean user);

    String queryImg(Integer movieId);

    void addUserInfo(UserBean user);

    void updateUserInfo(UserInfo user);

    UserInfo queryUserInfo(Integer userId);

    int queryUseryd(Integer id);

    void upusername(@Param("integer")int integer,@Param("nickName") String nickName);
}
